package org.example.service;

import org.example.pojo.Tasks;
import org.example.utils.R;

/**
 * ClassName: TasksService
 * Description:
 *
 * @Author Kotaro
 * @Create 2024/11/26 16:19
 * @Version 1.0
 */
public interface TasksService {

    R selectTasksStatusByRequesterId(Tasks tasks);

    R selectTasksStatusByReceiverId(String receiverId, Integer taskId);

    R selectTasksBytaskStatus(String taskStatus);

    R reviewTasksByTasksId(Integer taskId, Integer rating, String comment);

    R completeTasksByTasksId(Integer taskId);

//    R showAllTasks(Integer taskCategory);

    R page(int pageSize, int currentPage, Integer taskCategory);

    R pageByString(int pageSize, int currentPage, String userId);

    R recallTasksByTaskId(Integer taskId);

    R pageByStringAndInteger(int pageSize, int currentPage, String requesterId, Integer taskStatus);
}
